Adding Support for Other Devices

If you know the fundamentals of C programming then adding support for other devices should be relatively easy. First, become familiar with the device. Determine whether it supports direct line drawing or raster graphics. If it has a line drawing mode then use either tektronix.c or impress.c (found in the src directory) to guide you in creating the new driver. If only raster graphics (i.e. a bitmap device) are supported then use laserjetii.c as a guide. You will also need to add the appropriate code to plstar.c (also in the src directory). An examination of plstar.c should indicate what changes have to be made. A make file (LMKFILE) is provided in the root directory of the PLPLOT disk to automate the process of updating the library. You will probably want to add the name of your driver to this make file.